package ro.gateway.aida.db;

import java.util.Hashtable;


/**
 * <p>Title: Romanian AIDA</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (comparator) 2003</p>
 * <p>Company: ro-gateway</p>
 * @author Mihai Popoaei, mihai_popoaei@yahoo.com, smike@intellisource.ro;
 * Mihai Postelnicu, mihai@ro-gateway.org
 * @version 1.0-* @version $Id: PersistenceToken.java,v 1.1 2004/10/24 23:37:09 mihaipostelnicu Exp $
 *
 * object holding persistence information
 * for example: CFService, pool_name
 */
public class PersistenceToken {
    Hashtable properties = new Hashtable();

    public Object getProperty(String name) {
        return properties.get(name);
    }

    public void setProperty(String name, Object obj) {
        if (obj == null)
            return;

        properties.put(name, obj);
    }

    public void removeProperty(String name) {
        properties.remove(name);
    }

    /**
     * @return
     */
    public Hashtable getProperties() {
        return properties;
    }

    /**
     * @param hashtable
     */
    public void setProperties(Hashtable hashtable) {
        properties = hashtable;
    }

    public static final String TOKEN_KEY = "ro.gateway.aida.db.PersistenceToken";
}
